import request from '@/utils/request'
// 查询销售金额日记录表列表
export function selectOperationsSummary(query) {
  return request({
    url: '/sale/BiTbSaleDwd/selectOperationsSummary',
    method: 'get',
    params: query
  })
}
// 查询销售金额日记录表列表
export function selectTXSaleTargetStatistics(query) {
  return request({
    url: '/sale/BiTbSaleDwd/selectTXSaleTargetStatistics',
    method: 'get',
    params: query
  })
}
// 查询销售金额日记录表列表
export function selectTXOtherDataStatistics(query) {
  return request({
    url: '/sale/BiTbSaleDwd/selectTXOtherDataStatistics',
    method: 'get',
    params: query
  })
}
// 查询销售金额日记录表列表
export function selectChannelConversion(query) {
  return request({
    url: '/sale/BiTbSaleDwd/selectChannelConversion',
    method: 'get',
    params: query
  })
}
// 查询销售金额日记录表列表
export function selectShopSaleAmountRatio(query) {
  return request({
    url: '/sale/BiTbSaleDwd/selectShopSaleAmountRatio',
    method: 'get',
    params: query
  })
}
// 查询淘系销售营销数据列表
export function listBiTbSaleDwd(query) {
  return request({
    url: '/sale/BiTbSaleDwd/list',
    method: 'get',
    params: query
  })
}

// 查询淘系销售营销数据详细
export function getBiTbSaleDwd(id) {
  return request({
    url: '/sale/BiTbSaleDwd/' + id,
    method: 'get'
  })
}

// 新增淘系销售营销数据
export function addBiTbSaleDwd(data) {
  return request({
    url: '/sale/BiTbSaleDwd',
    method: 'post',
    data: data
  })
}
// 新增淘系销售营销数据
export function synData(data) {
  return request({
    url: '/sale/BiTbSaleDwd/synData',
    method: 'post',
    data: data
  })
}
// 修改淘系销售营销数据
export function updateBiTbSaleDwd(data) {
  return request({
    url: '/sale/BiTbSaleDwd',
    method: 'put',
    data: data
  })
}

// 删除淘系销售营销数据
export function delBiTbSaleDwd(id) {
  return request({
    url: '/sale/BiTbSaleDwd/' + id,
    method: 'delete'
  })
}
